package edu.chalmers.Framework_EXAMPLES;

import edu.chalmers.AV_2DPlatformerFramework.*;
import edu.chalmers.AV_2DPlatformerFramework.Model.Hitbox;
import edu.chalmers.AV_2DPlatformerFramework.View.Camera;
/**
 *
 * @author Joakim
 */
public class BallExampleGame extends Game {
    public BallExampleGame() {
        super(1080, 720, "Bollar!");
        
    }
    
    public static void main(String[] args) {
        BallView v = new BallView();
        try {
            Camera c = new Camera();
            v.camera = c;
            BallExampleModel m = new BallExampleModel(c);
            BallExampleGame b = new BallExampleGame();
            b.setCModel(m);
//            v.setBackground(Color.red);
            b.add(v);
            v.setModel(m);
            v.setVisible(true);
            b.setVisible(true);
        } catch (Hitbox.HitboxMalformedException ex) {
            System.out.println("Bad hitbox in:" + ex.toString());
        }
        
        
        
    }
}
